<!DOCTYPE html>
{% load staticfiles %}
{% load bootstrap3 %}
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>商户管理后台</title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <link rel="stylesheet" type="text/css" href="{% bootstrap_css_url %}">
    <link href="http://cdn.bootcss.com/bootstrap-material-design/0.3.0/css/material.min.css" rel="stylesheet">
   <link rel="stylesheet" href="{% static 'engine/css/styles.css' %}">
   <link href="{% static 'engine/css/bootstrap3-wysihtml5.min.css' %}" rel="stylesheet"/>
   <style type="text/css">
body{
  font-family: Helvetica ;
}
.nav a{
  text-align: left;
}
   </style>
    {% block css %}{% endblock css %}
  </head>
  <body>

  <div class="header">
       <div class="container">
          <div class="row">
             <div class="col-md-5">
                <!-- Logo -->
                <div class="logo">
                   <h1><a href="#">商户管理后台</a></h1>
                </div>
             </div>
             <div class="col-md-5">
             </div>
             <div class="col-md-2">
                <div class="navbar navbar-inverse" role="banner">
                    <nav class="collapse navbar-collapse bs-navbar-collapse navbar-right" role="navigation">
                      <ul class="nav navbar-nav">
                        <li class="dropdown">
                          <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="glyphicon glyphicon-user"></i>{{user.name}}<b class="caret"></b></a>
                          <ul class="dropdown-menu animated fadeInUp shadow-z-2">
                            <li><a href="{% url 'do_reset' %}">修改密码</a></li>
                            <li><a href="{% url 'do_logout' %}">注销</a></li>
                          </ul>
                        </li>
                      </ul>
                    </nav>
                </div>
             </div>
          </div>
       </div>
  </div>

    <div class="page-content">
      <div class="row">
      <div class="col-md-2">
        <div class="sidebar content-box shadow-z-1" style="display: block;">
                <ul class="nav">
                    <!-- Main menu -->

                    <li class="current"><a href="{% url 'dashboard' %}" class="btn"><i class="glyphicon glyphicon-th-large"></i> 控制面板</a></li>
                    <li class="submenu">
                         <a href="#"  class="btn">
                            <i class="glyphicon glyphicon-home"></i> 店铺管理
                            <span class="caret pull-right"></span>
                         </a>
                         <ul>
                           <li><a href="{% url 'shop_detail' %}">店铺信息</a></li>
                           <li><a href="{% url 'geo' %}">地理信息</a></li>
                           <li><a href="{% url 'shop_data' %}">店铺数据</a></li>
                        </ul>
                    </li>
                    <li><a href="{% url 'stat' %}" class="btn"><i class="glyphicon glyphicon-eye-open"></i>用户流量</a></li>
                    <li><a href="{% url 'product_list' %}" class="btn"><i class="glyphicon glyphicon-list"></i> 产品信息</a></li>
                    <li><a href="{% url 'new_list' %}" class="btn"><i class="glyphicon glyphicon-pencil"></i> 新闻管理</a></li>
                    <li><a href="{% url 'calendar' %}" class="btn"><i class="glyphicon glyphicon-calendar"></i> 事件日历</a></li>
                    <li><a href="{% url 'ads' %}" class="btn"><i class="glyphicon glyphicon-record"></i>广告管理</a></li>
                </ul>
             </div>
      </div>
      <div class="col-md-10">
        <div class="content-box-large shadow-z-1">
          {% block content %}
          {% endblock content %}
        </div>
      </div>
    </div>
    </div>

    <footer>
         <div class="container">
            <div class="copy text-center">
               Copyright 2014 <a href='#'>Website</a>
            </div>
         </div>
      </footer>
      <script type="text/javascript" src="{% bootstrap_jquery_url %}"></script>
      <script type="text/javascript" src="{% bootstrap_javascript_url %}"></script>
      <script src="http://cdn.bootcss.com/bootstrap-material-design/0.3.0/js/material.min.js"></script>
    <script src="{% static 'engine/js/custom.js' %}"></script>
    <script src="{% static 'engine/js/bootstrap3-wysihtml5.all.min.js' %}"></script>
<script src="{% static 'engine/js/bootstrap-wysihtml5.zh-CN.js' %}"></script>
<script type="text/javascript">
    $(".editor").wysihtml5({
        locale: "zh-CN"
    });
</script>
    {% block js %}{% endblock js %}
  </body>
</html>
